#pragma once
#include "RequestHandle.h"
#include "DownloadThread.h"

class FileDownRequest :
	public RequestHandle
{
public:
	FileDownRequest(void);
	~FileDownRequest(void);
	void SendRETR(void);
	void SetFilePointer(FILE *file) { m_pFile = file; }
	void SetProgressBar(CProgressCtrl *pProCtrl, int nFileSize);

private:
	virtual int ResponseAnalysis();
	DownloadThread *m_pkDownloadThread;
	FILE *m_pFile;
	CProgressCtrl *m_pkProgressCtrl;

	struct m_kFileDownenum
	{
		enum
		{
			NONE = 0,
			PWD,
			PASV,
			RETR
		};
	};
};

